/**
 * ListPictureService.java
 *
 *
 * $LastChangedBy: allen $
 * $LastChangedDate: 2007-12-11 17:22:48 +0800 $
 * $Revision: 1440 $
 */
package com.myspace.service.picture;

import java.util.Date;
import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.myspace.domain.Picture;
import com.myspace.domain.PictureComment;
import com.myspace.domain.User;

/**
 * Service for edit picture.
 *
 * @author Allen.Chen
 *
 */
@Transactional(readOnly = true)
public interface ViewPictureService {

	public List<Picture> getPicturesByTag(User user, String tag, int pageNum,
			int pageSize);

	public List<Picture> getPicturesByDate(User user, Date fromDate,
			Date toDate, int pageNum, int pageSize);

	public List<List<String>> getPictrueInfo(User user);

	public int getTotalByTag(Long userId, String tag);

	public int getTotalByDate(Long userId, Date fromDate, Date toDate);

	public List<PictureComment> getComments(Long picId);

	public Picture getPicture(Long id);

}
